<?php
// +----------------------------------------------------------------------
// | NewThink [ Think More,Think Better! ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2018 http://www.newthink.cc All rights reserved.
// +----------------------------------------------------------------------
// | 版权所有：山西创泰网络科技有限公司
// +----------------------------------------------------------------------
// | Author: JiYun Date:2019-02-28 Time:16:41
// +----------------------------------------------------------------------

namespace app\common\service\airquality;

use app\common\service\BaseService;
use app\common\model\airquality\AirQualityStationAqiForecastDayModel as StationAqiForecastDayModel;

/**
 * Class AirQualityStationAqiForecastDay
 * @package app\index\service\airquality
 */
class AirQualityStationAqiForecastDayService extends BaseService
{
    /**
     * AirQualityStationAqiForecastDay constructor.
     */
    public function __construct()
    {
        parent::__construct();
    }
    
    /**
     * 获取7日数据
     * @author JiYun On 2019/03/01
     * @param array $param
     * @return array
     * @throws \Exception
     */
    public function get7DayForecastList($param = [])
    {
        $stationAqiForecastDayModel = new StationAqiForecastDayModel();
        
        try {
            $list = $stationAqiForecastDayModel->get7DayForecastList($param);
        } catch (\Exception $e) {
            throw $e;
        }
        
        return $list;
    }
}
